$user = Auth::User(); Session::put('user', $user); $user=Session::get('user'); return $user->name;